]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Adapt to the new NetworkManager API names
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 1 Sep 2013 02:33:03 +0000 (22:33 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 1 Sep 2013 02:33:16 +0000 (22:33 -0400)
"physical connection" has been replaced with "primary connection"

js/ui/status/network.js

index 79cb711554c18eba2b9f7aaff8f52000259c2db9..879d7bfa133ad3845d1293a89af1f06e7e2aeae4 100644 (file)
@@ -1286,7 +1286,7 @@ const NMApplet = new Lang.Class({
         this._client.connect('notify::manager-running', Lang.bind(this, this._syncNMState));
         this._client.connect('notify::networking-enabled', Lang.bind(this, this._syncNMState));
         this._client.connect('notify::state', Lang.bind(this, this._syncNMState));
-        this._client.connect('notify::physical-connection', Lang.bind(this, this._syncMainConnection));
+        this._client.connect('notify::primary-connection', Lang.bind(this, this._syncMainConnection));
         this._client.connect('notify::active-connections', Lang.bind(this, this._syncVPNConnections));
         this._client.connect('device-added', Lang.bind(this, this._deviceAdded));
         this._client.connect('device-removed', Lang.bind(this, this._deviceRemoved));
@@ -1430,7 +1430,7 @@ const NMApplet = new Lang.Class({
     _getMainConnection: function() {
         let connection;
 
-        connection = this._client.get_physical_connection();
+        connection = this._client.get_primary_connection();
         if (connection) {
             this._ensureActiveConnectionProps(connection);
             return connection;